<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">
	
	<h:panelGrid columns="3" id="#{panelId}" >

		<h:outputLabel value="Förnamn:" for="#{prefix}fname" />
		<h:inputText id="#{prefix}fname" value="#{customer.firstName}">
			<rich:validator />
		</h:inputText>
		<rich:message for="#{prefix}fname" />

		<h:outputLabel value="Efternamn:" for="#{prefix}lname" />
		<h:inputText id="#{prefix}lname" value="#{customer.lastName}">
			<rich:validator />
		</h:inputText>
		<rich:message for="#{prefix}lname" />

		<h:outputLabel value="Telefon:" for="#{prefix}phone" />
		<h:inputText id="#{prefix}phone" value="#{customer.phone}">
			<rich:validator />
		</h:inputText>
		<rich:message for="#{prefix}phone" />

		<h:outputLabel value="Epost:" for="#{prefix}email" />
		<h:inputText id="#{prefix}email" value="#{customer.email}">
			<rich:validator />
		</h:inputText>
		<rich:message for="#{prefix}email" />

		<h:outputLabel value="Smsnotifiering:" for="#{prefix}smsnotification" />
		<h:selectBooleanCheckbox id="#{prefix}smsnotification"
			value="#{customer.smsnotification}">
			<rich:validator />
		</h:selectBooleanCheckbox>
		<rich:message for="#{prefix}smsnotification" />

	</h:panelGrid>

</ui:composition>